{include file="public_head" /}

<!-- datatables -->
<link href="__STATIC__/js/datatables/jquery.dataTables.min.css" rel="stylesheet" type="text/css"/>
<!-- chk_3 -->
<link href="__STATIC__/css/chk_3.css" rel="stylesheet" type="text/css"/>

<body class="nav-md">

<div class="container body">


    <div class="main_container">

        {include file="public_sidebar,public_nav" /}

        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">
                <div class="page-title">
                    <div class="title_left">
                        <h3>

                        </h3>
                    </div>
                </div>
                <div class="clearfix"></div>

                <div class="row">

                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>开奖活动列表 <span style="color: #f00;font-size: 13px; display: none;">下次再来奖品 中奖概率应该最高且概率应远大于其他概率(唯一不中奖奖品)</span></h2>
                                <a style="float: right" href="{:url('create')}"
                                   class="btn btn-success btn-sm">创建开奖活动</a>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <form name="form" id="form" method="post" action="">
                                    <table style="border-bottom:1px solid #ddd;"
                                           class="table table-striped table-bordered table-hover">
                                        <thead>
                                        <tr class="success">
                                            <!--<th style="width: 2%; padding: 10px;">-->
                                            <!--<input type="checkbox" class="checkall"-->
                                            <!--onclick="CheckAll(this.checked);"/>-->
                                            <!--</th>-->
                                            <!--<th>排序</th>-->
                                            <th width="30">ID</th>
                                            <th width="">抽奖标题</th>
                                            <th width="">报名人数</th>
                                            <th width="">开奖时间</th>
                                            <th width="">报名时间</th>
                                            <th width="">创建时间</th>
                                            <th width="">是否开启</th>
                                            <th width="">审核状态</th>
                                            <th width="">一级审核</th>
                                            <th width="">二级审核</th>
                                            <th width="">三级审核</th>
                                            <!--<th>是否启用</th>-->
                                            <th>操作</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        {empty name="data"}
                                        <tr><td colspan="5"><div style='font-size:24px;margin:30px 0;'>没有找到记录</div></td></tr>
                                        {/empty}
                                        {volist name="data" id="item"}
                                        <tr >
                                            <td>{$item.id}</td>
                                            <td>{$item.title}</td>
                                            <td>{$item.apply_number}</td>
                                            <td>{$item.draw_start_time}</td>
                                            <td>{$item.apply_start_time} - {$item.apply_end_time}</td>
                                            <td>{$item.create_time}</td>
                                            <td> {switch name="$item.status"}
                                                {case 1}开启{/case}
                                                {default /}关闭
                                                {/switch}</td>
                                            <td>{$item.auding_text}</td>
                                            <td>{$item.auding_text1}</td>
                                            <td>{$item.auding_text2}</td>
                                            <td>{$item.auding_text3}</td>
                                            <!--<td>-->
                                            <!--<input type="checkbox" id="checkbox4_{$item.id}" class="chk_3"-->
                                            <!--value="{$item.status}" {eq name="item['status']" value="1"}checked{/eq} />-->
                                            <!--<label style="margin-left: 30px;margin-top: 5px;"-->
                                            <!--onclick="CheckInfo('{:url(\'status\',[\'id\' => $item[\'id\']])}')"-->
                                            <!--for="checkbox4_{$item.id}"></label>-->
                                            <!--</td>-->

                                            <td class="operate" >
                                                <div>
                                                    <a href="{:url('ApplyLog/index', ['id' => $item['id'],'count' => $item['apply_number']])}"
                                                       class="label label-primary">
                                                        <span class="fa fa-pencil"></span>&nbsp;&nbsp;报名用户({$item.count})
                                                    </a>
                                                    <a href="{:url('update', ['id' => $item['id']])}"
                                                       class="label label-primary">
                                                        <span class="fa fa-pencil"></span>&nbsp;&nbsp;编 辑
                                                    </a>
                                                    {eq name="$auding_status" value="2"}
                                                    <a href="{:url('destroy', ['id' => $item['id']])}"
                                                       class="label label-danger"
                                                       onClick="return confirm('确定删除吗?')"
                                                    >
                                                        <span class="fa fa-times"></span>&nbsp;&nbsp;删 除
                                                    </a>
                                                    {neq name="$item.auding_status" value="2"}
                                                    <a href="{:url('update', ['id' => $item['id']])}"
                                                       class="label label-success">
                                                        <span class="fa fa-pencil"></span>&nbsp;&nbsp;审 核
                                                    </a>
                                                    {else/}
                                                    <a
                                                            class="label label-warning">
                                                        <span class="fa fa-pencil"></span>&nbsp;&nbsp;完 成
                                                    </a>
                                                    {/neq}
                                                    {/eq}

                                                </div>
                                            </td>
                                        </tr>
                                        {/volist}
                                        </tbody>
                                    </table>
                                </form>
                            </div>
                        </div>
                    </div>

                </div>
            </div>

        </div>
        <!-- /page content -->
    </div>

</div>

{include file="public_foot" /}
<!-- public -->
<script src="__STATIC__/js/public.js"></script>
<!-- layer -->
<script src="__STATIC__/js/layer.js"></script>